﻿<Window x:Class="OVS_FrontOffice.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="700" Width="960" 
        WindowStartupLocation="CenterScreen" 
        WindowState="Normal"
        Title="MainWindow"
        MaxWidth="{Binding Source={x:Static SystemParameters.WorkArea}, Path=Width}"
        MaxHeight="{Binding Source={x:Static SystemParameters.WorkArea}, Path=Height}"
        VerticalContentAlignment="Stretch" MinHeight="700" MinWidth="1000"
        BorderBrush="#B4252127" BorderThickness="0" WindowStyle="None" ResizeMode="CanResize" Margin="0"
        xmlns:my="clr-namespace:System;assembly=mscorlib"
        xmlns:my4="clr-namespace:PDSA.WPF;assembly=PDSA.WPF"
        xmlns:my2="clr-namespace:Xceed.Wpf.Toolkit;assembly=WPFToolkit.Extended" Icon="/OVS_FrontOffice;component/Resources/LogoOVS.png" Closing="MainWindow_Closing">

    <Window.Resources>
        <LinearGradientBrush x:Key="Background1" EndPoint="0,1">
            <GradientStop Color="#FFFAF9F5" Offset="0" />
            <GradientStop Color="#FFEBE7E0" Offset="0.5" />
            <GradientStop Color="#FFC0C0A8" Offset="0.9" />
            <GradientStop Color="#FFA3A37C" Offset="1" />
        </LinearGradientBrush>
        <Storyboard x:Key="ButtonStoryBoard">
            <DoubleAnimation Name="btnStartdoubleAnimation"
                                        Storyboard.TargetName="btnStart"
                                        Storyboard.TargetProperty="Opacity"
                                        From="1.0" To="0.0" Duration="0:0:5"
                                        AutoReverse="True" RepeatBehavior="Forever" />
            <ColorAnimation Storyboard.TargetName="MyColorBrush" 
                                        Storyboard.TargetProperty="Color"
                                        From="Green"
                                        To="Yellow"              
                                        Duration="0:0:10"
                                        AutoReverse="True" RepeatBehavior="Forever"/>
            <ColorAnimation Storyboard.TargetName="MyBorderColorBrush" 
                                        Storyboard.TargetProperty="Color"
                                        From="DeepSkyBlue"
                                        To="AntiqueWhite"              
                                        Duration="0:0:15"
                                        AutoReverse="True" RepeatBehavior="Forever"/>

        </Storyboard>
    </Window.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="2*" />
            <ColumnDefinition Width="5*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="60" />
            <RowDefinition Height="25" />
            <RowDefinition Height="200*" />
            <RowDefinition Height="20" />
        </Grid.RowDefinitions>

        <!--<my4:PDSAucButton  Text="Start/Stop" Name="btnStart" Effect="{StaticResource mainDropShadow}" Grid.Row="1" Grid.Column="1" Cursor="Hand" Click="button_Supprimer_Cam_Click" IsEnabled="True" Margin="0,0,700,0" />-->

        <DockPanel Name="dockPanel1" Grid.ColumnSpan="2" >
            <DockPanel.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="#FF879AA7" Offset="1" />
                    <GradientStop Color="White" Offset="0" />
                    <GradientStop Color="#21F7F7F7" Offset="0" />
                </LinearGradientBrush>
            </DockPanel.Background>

            <Label Content="Outil de Vidéosurveillance" Name="label1" HorizontalContentAlignment="Stretch" DockPanel.Dock="Left" HorizontalAlignment="Left"  FontSize="38" VerticalAlignment="Center"  FontFamily="Arial" FontWeight="Bold" Foreground="#FF627890" Padding="5,0" Margin="15,0,0,0" />

        </DockPanel>
        <StackPanel HorizontalAlignment="Right" Name="stackPanel2" Width="Auto" Grid.Column="1" Height="Auto" Orientation="Horizontal" VerticalAlignment="Top">
            <Image Height="15" Name="minWin" Stretch="Fill" Width="15" Source="/Resources/minimize.png" Margin="2,3,0,0" Opacity="0.3"  />
            <Image Height="15" Name="maxWin" Stretch="Fill" Width="15" Source="/Resources/maximize.png" Margin="2,3,0,0" Opacity="0.3"   />
            <Image Height="15" Name="closeWin" Stretch="Fill" Width="15" Source="/Resources/closeWin.png" Margin="2,3,2,0" Opacity="0.3"  />
        </StackPanel>
        <TabControl Name="tabControl1" Grid.Row="1" Grid.RowSpan="2" Grid.ColumnSpan="2" HorizontalContentAlignment="Center" TabStripPlacement="Top" Opacity="1">
            <TabControl.Resources>
                <Style TargetType="{x:Type TabPanel}">
                    <Setter Property="HorizontalAlignment" Value="Center" />
                </Style>
            </TabControl.Resources>
            <TabItem Header="Caméras" Name="tabCam" FontSize="11" FontWeight="SemiBold" Style="{StaticResource tab}" IsEnabled="True" MouseLeftButtonUp="tabCam_MouseLeftButtonUp">
                <Grid VerticalAlignment="Stretch" Name="camGrid">

                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="3*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="0.7*" />
                        <RowDefinition Height="3*" />
                    </Grid.RowDefinitions>
                    <Border  Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0" Background="#FFEFEFEF" BorderThickness="1" BorderBrush="#FF4C4848">
                        <ListView VerticalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Disabled" Name="ListCam" SelectionMode="Single" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Top" SelectionChanged="ListCam_SelectionChanged">
                            <ListView.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel Orientation="Horizontal"></StackPanel>
                                </ItemsPanelTemplate>
                            </ListView.ItemsPanel>
                        </ListView>
                    </Border>
                    <Border  Grid.Column="0" Grid.Row="1"  Background="#FFEFEFEF" BorderThickness="1,0,0,1" BorderBrush="#FF4C4848">
                        <Image Name="imageBoxSelectedCam" Stretch="Uniform" />
                    </Border>
                    <Border Background="#FFEFEFEF" Grid.Column="1" Grid.Row="1" BorderThickness="1,0,1,1" BorderBrush="#FF4C4848">
                        <DockPanel Name="dockPanel2" IsVisibleChanged="dockPanel2_IsVisibleChanged">
                            <CheckBox Style="{StaticResource OrangeSwitchStyle}" DockPanel.Dock="Top" FontFamily="Tahoma" Foreground="#CC26282B" VerticalAlignment="Center" FontWeight="Bold" FontSize="12" Margin="0,5,5,5" Content="    Détection activée :      " HorizontalAlignment="Left" Name="checkBoxDetectObject" IsChecked="False" Checked="checkBoxDetectObject_Checked" Unchecked="checkBoxDetectObject_Unchecked" />

                            <StackPanel Name="stackCam" HorizontalAlignment="Stretch" DockPanel.Dock="Top" VerticalAlignment="Top">
                                <Border Background="#FFEFEFEF" BorderThickness="0,1,0,0" BorderBrush="#FF4C4848">
                                    <TextBlock  Margin="0,15" FontFamily="Arial" FontSize="18" Name="txtCam" Text="Caméra" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="#FF33383B"  FontWeight="SemiBold"/>
                                </Border>
                                <TextBlock FontWeight="SemiBold" Foreground="#FF33383B" FontFamily="Arial" FontSize="11" Name="txtName" Text="Nom" TextAlignment="Center" Background="#66000000" Padding="0,2" Margin="0" />
                                <TextBlock Name="txtNameCam" Text="-" FontFamily="Arial" FontSize="10" TextAlignment="Center" Padding="0,2" Margin="0" />
                                <TextBlock FontWeight="SemiBold" Foreground="#FF33383B" FontFamily="Arial" FontSize="11" Name="txtDesc" Text="Description" TextAlignment="Center" Background="#66000000" Padding="0,2" Margin="0" />
                                <TextBlock Name="txtDescCam" Text="-" FontFamily="Arial" FontSize="10" TextAlignment="Center" Padding="0,2" Margin="0" />
                                <TextBlock FontWeight="SemiBold" Foreground="#FF33383B" FontFamily="Arial" FontSize="11" Name="txtAdd" Text="Adresse IP" TextAlignment="Center" Background="#66000000" Padding="0,2" Margin="0" />
                                <TextBlock Name="txtIpCam" Text="-" FontFamily="Arial" FontSize="10" TextAlignment="Center" Padding="0,2" Margin="0" />
                                <TextBlock FontWeight="SemiBold" Foreground="#FF33383B" FontFamily="Arial" FontSize="11"  Name="txtLoc" Text="Localisation" TextAlignment="Center" Background="#66000000" Padding="0,2" Margin="0" />
                                <TextBlock Name="txtLocCam" Text="-" FontFamily="Arial" FontSize="10" TextAlignment="Center" Padding="0,2" Margin="0" />

                            </StackPanel>


                            <StackPanel Name="stackCamHaar" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"  Margin="0,5,0,5">

                            </StackPanel>

                        </DockPanel>
                    </Border>
                </Grid>
            </TabItem>
            <TabItem Header="Configuration" Name="tabItemConf" FontSize="11" FontWeight="SemiBold" Style="{StaticResource tab}" IsEnabled="True">
                <Grid VerticalAlignment="Stretch" Name="confGrid">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <TabControl Name="tabControlConf" Grid.Row="0" Grid.Column="0" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" TabStripPlacement="Left" Opacity="1">
                        <TabItem Header="Caméras" Name="tabCamConf" FontSize="11" FontWeight="Normal" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Style="{StaticResource tab2}" IsEnabled="True">
                            <Grid VerticalAlignment="Stretch" Name="camGridConf">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="0.2*" />
                                    <RowDefinition Height="0.3*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="0.3*" />
                                    <RowDefinition Height="0.1*" />
                                </Grid.RowDefinitions>
                                <Border Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="0" BorderThickness="1" BorderBrush="#FF524747">
                                    <TextBlock Text="Gestion des caméras" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="14" TextWrapping="Wrap" Focusable="False" />
                                </Border>
                                <TextBlock Text="Adresse de la caméra : "  Name="Label_Adresse_Ip" Grid.Column="0" Grid.Row="1" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBox Grid.Column="1" Grid.Row="1" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="Adresse_Ip" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="0,0,75,0" />
                                <TextBlock Text="Gestion des objets détectés :"  Name="label_Objet_Camera" Grid.Column="3" Grid.Row="1" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Text="Liste des caméras enregistrée(s) :"  Name="label_List_Camera" Grid.Column="2" Grid.Row="1" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <my4:PDSAucButton  Text="Tester" Name="button_Tester_Cam" Effect="{StaticResource mainDropShadow}" Grid.Row="1" Grid.Column="1" Cursor="Hand" VerticalAlignment="Center" Click="button_Tester_Cam_Click" IsEnabled="True" Margin="140,0,2,0" />
                                <Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0" BorderThickness="1" BorderBrush="#FF524747">
                                    <TextBlock Text="Ajouter une caméra" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="14" TextWrapping="Wrap" Focusable="False" />
                                </Border>
                                <Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="4" BorderThickness="1,0,1,1" BorderBrush="#FF524747">
                                </Border>
                                <Border Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="4" BorderThickness="1,0,1,1" BorderBrush="#FF524747">
                                </Border>
                                <Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" Grid.RowSpan="1" BorderThickness="0,1,0,0" BorderBrush="#FF524747">
                                </Border>
                                <Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" BorderThickness="0,0,0,1" BorderBrush="#FF524747">
                                </Border>
                                <Border Grid.Column="2" Grid.ColumnSpan="1" Grid.Row="1" Grid.RowSpan="1" BorderThickness="0,0,1,1" BorderBrush="#FF524747">
                                </Border>
                                <Border Grid.Column="3" Grid.ColumnSpan="1" Grid.Row="1" Grid.RowSpan="1" BorderThickness="0,0,0,1" BorderBrush="#FF524747">
                                </Border>
                                <my4:PDSAucButton  Text="Ajouter" Name="button_Ajouter_Cam" Effect="{StaticResource mainDropShadow}" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Cursor="Hand" Click="button_Ajouter_Cam_Click" IsEnabled="True" Margin="145,23" />
                                <my4:PDSAucButton  Text="Supprimer" Name="button_Supprimer_Cam" Effect="{StaticResource mainDropShadow}" Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="2" Cursor="Hand" Click="button_Supprimer_Cam_Click" IsEnabled="True" Margin="145,23" />
                                <Image Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Name="imageBox_Capture_Camera" Stretch="Fill"  />
                                <TextBlock Grid.Column="0" Name="label_Resultat_Test" Grid.Row="4" Grid.ColumnSpan="2" FontFamily="Tahoma" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" Foreground="Red" OpacityMask="#B0000000"></TextBlock>
                                <ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled" IsSynchronizedWithCurrentItem="True" Grid.Row="2" Grid.Column="2"  ItemsSource="{Binding}" DataContext="{Binding}"  x:Name="list_Camera_Ip" SelectionMode="Single" MouseDoubleClick="HandleDoubleClick" SelectionChanged="list_Camera_Ip_SelectionChanged" Background="#FFECEDEF" IsEnabled="True" Loaded="list_Camera_Ip_Loaded">
                                    <ListView.View>
                                        <GridView>
                                            <GridViewColumn Header="Caméra" Width="103">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <TextBlock HorizontalAlignment="Center" TextAlignment="Center" Text="{Binding}" Width="100"/>
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                            <GridViewColumn Header="Active" Width="103">
                                                <GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <CheckBox Name="ckList" Tag="{Binding}" Unchecked="CheckBox_Unchecked" Checked="CheckBox_Checked" Initialized="ckList_Initialized" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Center" FlowDirection="RightToLeft" HorizontalContentAlignment="Center" Margin="40,0,0,0" />
                                                    </DataTemplate>
                                                </GridViewColumn.CellTemplate>
                                            </GridViewColumn>
                                        </GridView>
                                    </ListView.View>
                                </ListView>

                                <ListBox Grid.Row="2" Grid.Column="3" ItemsSource="{Binding TheList}"  Name="listBoxZone" Background="#FFECEDEF">
                                    <ListBox.ItemTemplate>
                                        <DataTemplate>
                                            <CheckBox Checked="CheckBoxZone_Checked" Content="{Binding TheText}" Margin="0,5,0,0" Name="CheckBoxZone" Tag="{Binding TheValue}" IsChecked="{Binding IsSelected}" Unchecked="CheckBoxZone_Checked" />
                                        </DataTemplate>
                                    </ListBox.ItemTemplate>
                                    <ListBox.ItemContainerStyle>
                                        <Style TargetType="ListBoxItem">
                                            <Setter Property="HorizontalContentAlignment" Value="Center" />
                                        </Style>
                                    </ListBox.ItemContainerStyle>
                                </ListBox>
                            </Grid>
                        </TabItem>
                        <TabItem Header="Fichiers Haar" Name="tabHaarConf" FontSize="11" FontWeight="Normal" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Style="{StaticResource tab2}" IsEnabled="True" IsVisibleChanged="tabHaarConf_IsVisibleChanged">
                            <Grid VerticalAlignment="Stretch" Name="HaarGridConf" >
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />                                   
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="0.05*" />
                                    <RowDefinition Height="0.05*" />
                                    <RowDefinition Height="0.1*" />
                                    <RowDefinition Height="0.05*" />
                                    <RowDefinition Height="0.1*" />
                                    <RowDefinition Height="0.15*" />
                                    <RowDefinition Height="0.1*" />
                                </Grid.RowDefinitions>
                                <Border Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="0" BorderThickness="1" BorderBrush="#FF524747">
                                    <TextBlock Text="Gestion des fichiers haar" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="14" TextWrapping="Wrap" Focusable="False" />
                                </Border>
                                <Border Grid.Column="0" Grid.ColumnSpan="2"  Grid.RowSpan="7" Grid.Row="0" BorderThickness="1" BorderBrush="#FF524747">
                                 </Border>
                                <Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0" BorderThickness="1" BorderBrush="#FF524747">
                                    <TextBlock Text="Prévisualisation" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="14" TextWrapping="Wrap" Focusable="False" />
                                </Border>
                                <Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="3" BorderThickness="1,0,1,1" BorderBrush="#FF524747">
                                   
                                </Border>
                                <Border Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="4" Grid.RowSpan="1" BorderThickness="0,0,0,0" BorderBrush="#FF524747">
                                    <TextBlock Text="Sélectionner Caméra :" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                               </Border>
                                <Border Grid.Column="1" Grid.ColumnSpan="1" Grid.Row="4" Grid.RowSpan="1" BorderThickness="0,0,0,0" BorderBrush="#FF524747">
                                    <ComboBox Grid.Column="1" Grid.Row="3"  VerticalContentAlignment="Center" HorizontalContentAlignment="Center"  Name="comboBox_Haar_Choix_Cam" Margin="10,30" FontSize="16" SelectionChanged="comboBox_Haar_Choix_Cam_SelectionChanged" Loaded="comboBox_Haar_Choix_Cam_Loaded"></ComboBox>
                                </Border>
                                <Border Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="5" Grid.RowSpan="1" BorderThickness="0,0,0,0" BorderBrush="#FF524747">
                                    <TextBlock Text="Détecter objets :" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                </Border>
                                <Border Grid.Column="1" Grid.ColumnSpan="1" Grid.Row="5" Grid.RowSpan="1" BorderThickness="0,0,0,0" BorderBrush="#FF524747">
                                    <CheckBox Style="{StaticResource OrangeSwitchStyle}" DockPanel.Dock="Top" FontFamily="Tahoma" Foreground="#CC26282B" VerticalAlignment="Center" FontWeight="Bold" FontSize="12" Margin="0,5,5,5" Content="   " HorizontalAlignment="Left" Name="checkBoxHaarDetectObject" IsChecked="False" Unchecked="checkBoxDetectObject_Unchecked" Checked="checkBoxHaarDetectObject_Checked" />
                                </Border>
                                <Border Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="6" BorderThickness="1,0,1,1" BorderBrush="#FF524747">
                                </Border>
                                <Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="3" BorderThickness="0,0,0,1" BorderBrush="#FF524747">
                                    <Image Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Name="imageBox_Capture_HaarTest" Stretch="Fill" Source="/OVS_FrontOffice;component/Resources/LogoOVS.png" />
                                </Border>
                                <Border Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" BorderThickness="0,0,1,1" BorderBrush="#FF524747">
                                    <TextBlock Text="Ajout de fichiers Haar. :" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                </Border>
                                <Border Grid.Column="2" Grid.ColumnSpan="1" Grid.Row="2" Grid.RowSpan="1" BorderThickness="0,0,1,1" BorderBrush="#FF524747">
                                   <StackPanel Name="stackPanel11">
                                        <TextBlock Text="Desciption du fichier :" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" Margin="0,15,0,0" />
                                       <StackPanel Name="stackPanel12" Orientation="Horizontal" Margin="10,5,0,0">
                                            <TextBlock Text="Nom :   " FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" Margin="0" />
                                            <TextBox FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="TextBox_Haar_File_Nom" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="0" Width="150" />
                                        </StackPanel>
                                        <StackPanel Name="stackPanel13" Orientation="Horizontal" Margin="10,10,0,0">
                                            <TextBlock Text="Descr. :" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" Margin="0,5,0,0" />
                                            <TextBox FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="TextBox_Haar_File_Description" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="0" Width="150" />
                                        </StackPanel>
                                    </StackPanel>
                                </Border>
                                <Border Grid.Column="3" Grid.ColumnSpan="1" Grid.Row="2" Grid.RowSpan="1" BorderThickness="0,0,1,1" BorderBrush="#FF524747">
                                    <my4:PDSAucButton  Text="Ajouter" Name="button_Ajouter_Fichier_Haar" Effect="{StaticResource mainDropShadow}" Cursor="Hand" IsEnabled="True" Margin="15,15" Click="button_Ajouter_Fichier_Haar_Click" />
                                </Border>
                                <Border Grid.Column="2" Grid.ColumnSpan="1" Grid.Row="3" Grid.RowSpan="1" BorderThickness="0,0,1,1" BorderBrush="#FF524747">
                                    <TextBlock Text="Fichiers Haar. :" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                </Border>
                                <Border Grid.Column="3" Grid.ColumnSpan="1" Grid.Row="3" Grid.RowSpan="1" BorderThickness="0,0,1,1" BorderBrush="#FF524747">
                                    <TextBlock Text="Configuration :" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                </Border>
                                <Border Grid.Column="3" Grid.ColumnSpan="1" Grid.Row="4" Grid.RowSpan="1" BorderThickness="0,0,0,0" BorderBrush="#FF524747">
                                    <StackPanel Name="stackPanel134">
                                        <StackPanel Name="stackPanel135" Orientation="Horizontal" Margin="10,15,0,0">
                                            <TextBlock Text="Min. Height :   " FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" Margin="0" />
                                            <TextBox FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="TextBox_Haar_File_Height" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="0" Width="50" />
                                        </StackPanel>
                                        <StackPanel Name="stackPanel136" Orientation="Horizontal" Margin="10,15,0,0">
                                            <TextBlock Text="Min Width :     " FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" Margin="0" />
                                            <TextBox FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="TextBox_Haar_File_Width" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="0" Width="50" />
                                        </StackPanel>
                                    </StackPanel>
                                </Border>
                                <Border Grid.Column="3" Grid.ColumnSpan="1" Grid.Row="5" Grid.RowSpan="1" BorderThickness="0,0,0,0" BorderBrush="#FF524747">
                                    <StackPanel Name="stackPanel21">
                                       <StackPanel Name="stackPanel211" Orientation="Horizontal" Margin="10,5,0,0">
                                            <TextBlock Text="MinNeighbors :" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" Margin="0,10,0,0" />
                                            <TextBox FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="TextBox_Haar_neightboors_Value" IsEnabled="False" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="10,10,0,0" Width="50" />
                                        </StackPanel>
                                        <Slider Height="23"  Maximum="20" Minimum="1" Value="3" VerticalAlignment="Top" Width="100" Name="SliderMinNeighbors" ValueChanged="SliderMinNeighbors_ValueChanged" />
                                        <StackPanel Name="stackPanel212" Orientation="Horizontal" Margin="10,5,0,0">
                                            <TextBlock Text="ScaleFactor :    " FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Focusable="False" Margin="0,10,0,0" />
                                            <TextBox FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="TextBox_Haar_ScaleFactor_Value" IsEnabled="False" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="10,10,0,0" Width="50" />
                                        </StackPanel>
                                        <Slider Height="23"  Maximum="10" Minimum="1.1" TickPlacement="None" UseLayoutRounding="False" Value="2" VerticalAlignment="Top" Width="100" Name="SliderScalFactor" ValueChanged="SliderScalFactor_ValueChanged" />
                                    </StackPanel>
                                </Border>
                                <Border Grid.Column="3" Grid.ColumnSpan="1" Grid.Row="6" Grid.RowSpan="1" BorderThickness="1,0,0,0" BorderBrush="#FF524747">
                                    <my4:PDSAucButton  Text="Update Values" Name="button_Update_Fichier_Haar" Effect="{StaticResource mainDropShadow}" Cursor="Hand" IsEnabled="True" Margin="15,15" Click="button_Update_Fichier_Haar_Click" />
                                    
                                </Border>  
                                <Border Grid.Column="2" Grid.ColumnSpan="1" Grid.Row="6" Grid.RowSpan="1" BorderThickness="0,0,0,0" BorderBrush="#FF524747">
                                    <my4:PDSAucButton  Text="Supprimer" Name="button_Delete_Fichier_Haar" Effect="{StaticResource mainDropShadow}" Cursor="Hand" IsEnabled="True" Margin="15,15" Click="button_Delete_Fichier_Haar_Click" />
                                    
                                </Border>  
                              

                                <Border Grid.Column="2" Grid.ColumnSpan="1" Grid.Row="4" Grid.RowSpan="2" BorderThickness="0,0,1,1" BorderBrush="#FF524747">
                                    <ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding}" DataContext="{Binding}" x:Name="list_HarrFiles" SelectionMode="Single" SelectionChanged="list_HarrFiles_SelectionChanged" Background="#FFECEDEF" IsEnabled="True" Loaded="list_HarrFiles_Loaded">
                                        <ListView.View>
                                            <GridView>
                                                <GridViewColumn Header="Fichier Haar" Width="200">
                                                    <GridViewColumn.CellTemplate>
                                                        <DataTemplate>
                                                            <TextBlock HorizontalAlignment="Center" TextAlignment="Center" Text="{Binding}" />
                                                        </DataTemplate>
                                                    </GridViewColumn.CellTemplate>
                                                </GridViewColumn>
                                            </GridView>
                                        </ListView.View>
                                    </ListView>
                                </Border>
                               
                            </Grid>
                        </TabItem>
                        <TabItem Header="Samples" Name="tabSamples" FontSize="11" FontWeight="Normal" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Style="{StaticResource tab2}" IsEnabled="True">
                            <Grid VerticalAlignment="Stretch" Name="camSampConf">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <my4:PDSAucButton Margin="100,100" Text="Clear BDD + fichiers" Name="clearDb" Effect="{StaticResource mainDropShadow}" Grid.Row="0" Grid.Column="0" Cursor="Hand" IsEnabled="True" Click="clearDb_Click" />


                            </Grid>
                        </TabItem>
                        <TabItem Header="Planification" Name="tabPlanifConf" FontSize="11" FontWeight="Normal" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Style="{StaticResource tab2}" IsEnabled="True" Initialized="tabPlanifConf_Initialized" MouseLeftButtonUp="tabPlanifConf_Initialized">
                            <Grid >
                                <Grid.RowDefinitions>

                                    <RowDefinition Height="0.5*"/>
                                    <RowDefinition Height="2*"/>
                                    <RowDefinition Height="2*"/>
                                    <RowDefinition Height="2*"/>

                                </Grid.RowDefinitions>

                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="2*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />

                                </Grid.ColumnDefinitions>
                                <ListView ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding ListUser}" Height="Auto" Name="listUsers" Width="Auto" Grid.Column="0" Grid.RowSpan="3" Grid.Row="1" IsManipulationEnabled="True" MouseMove="listUsers_MouseMove" VerticalAlignment="Stretch" SelectionMode="Single" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" SelectionChanged="listUsers_SelectionChanged">
                                    <ListView.ItemContainerStyle>
                                        <Style TargetType="ListViewItem">
                                            <Setter Property="HorizontalContentAlignment" Value="Center" />
                                        </Style>
                                    </ListView.ItemContainerStyle>
                                    <ListView.View>
                                        <GridView AllowsColumnReorder="False">
                                            <GridViewColumn DisplayMemberBinding="{Binding user_name}" Width="176">
                                                <TextBlock Text="Utilisateurs" TextAlignment="Center" />
                                            </GridViewColumn>
                                        </GridView>
                                    </ListView.View>
                                </ListView>
                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Column="1" Grid.ColumnSpan="8" Grid.Row="1" Grid.RowSpan="3" Name="border1" AllowDrop="True" />
                                <ListView  Name="lundi1" Grid.Column="2"  Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14" IsManipulationEnabled="False" Focusable="False">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="mardi1" Grid.Column="3"  Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel  VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="mercredi1" Grid.Column="4"  Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel  VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="jeudi1" Grid.Column="5"  Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel  VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="vendredi1" Grid.Column="6"  Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="samedi1" Grid.Column="7"  Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="dimanche1" Grid.Column="8"  Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="lundi2" Grid.Column="2"  Grid.Row="2" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="mardi2" Grid.Column="3"  Grid.Row="2" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="mercredi2" Grid.Column="4"  Grid.Row="2" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="jeudi2" Grid.Column="5"  Grid.Row="2" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="vendredi2" Grid.Column="6"  Grid.Row="2" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="samedi2" Grid.Column="7"  Grid.Row="2" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="dimanche2" Grid.Column="8"  Grid.Row="2" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="lundi3" Grid.Column="2"  Grid.Row="3" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="mardi3" Grid.Column="3"  Grid.Row="3" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="mercredi3" Grid.Column="4"  Grid.Row="3" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="jeudi3" Grid.Column="5"  Grid.Row="3" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="vendredi3" Grid.Column="6"  Grid.Row="3" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="samedi3" Grid.Column="7"  Grid.Row="3" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>
                                <ListView  Name="dimanche3" Grid.Column="8"  Grid.Row="3" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Height="Auto"  Width="Auto" IsManipulationEnabled="False" MouseMove="listUsers_MouseMove" AllowDrop="True" DragEnter="listSchedule_DragEnter" Drop="listSchedule_Drop" HorizontalContentAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="14">
                                    <ListView.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Center"/>
                                        </ItemsPanelTemplate>
                                    </ListView.ItemsPanel>

                                </ListView>

                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Row="1" Grid.Column="1" Name="Border10">
                                    <TextBlock Text="00H-08H" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Calibri" />
                                </Border>
                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Row="2" Grid.Column="1" Name="Border11">
                                    <TextBlock Text="08H-16H" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Calibri" />
                                </Border>
                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Row="3" Grid.Column="1" Name="Border12">
                                    <TextBlock Text="16H-00H" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Calibri" />
                                </Border>
                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Column="2" Name="Border3">
                                    <TextBlock Text="Lundi" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Calibri" />
                                </Border>
                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Column="3" Name="Border4">
                                    <TextBlock Text="Mardi" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Calibri" />
                                </Border>
                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Column="4" Name="Border5">
                                    <TextBlock Text="Mercredi" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Calibri" />
                                </Border>
                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Column="5" Name="Border6">
                                    <TextBlock Text="Jeudi" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Calibri" />
                                </Border>
                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Column="6" Name="Border7" >
                                    <TextBlock Text="Vendredi" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Calibri" />
                                </Border>
                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Column="7" Name="Border8">
                                    <TextBlock Text="Samedi" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Calibri" />
                                </Border>
                                <Border BorderBrush="Silver" BorderThickness="1" Grid.Column="8" Name="Border9">
                                    <TextBlock Text="Dimanche" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Calibri" />
                                </Border>
                            </Grid>
                        </TabItem>
                        <TabItem Header="Serveur Mail" Name="tabmailConf" FontSize="11" FontWeight="Normal" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Style="{StaticResource tab2}" IsEnabled="True">
                            <Grid VerticalAlignment="Stretch" Name="camMailConf">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <TextBlock Grid.Column="1" Grid.ColumnSpan="2" Text="Gestion du serveur mail" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="14" TextWrapping="Wrap" Focusable="False" />

                                <TextBlock Grid.Column="1" Grid.Row="1" Text="Adresse d'émission : "  Name="label_Adresse_Emission"  FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="1" Grid.Row="2" Text="Serveur SMTP : "  Name="label_Serveur_SMTP"  FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="1" Grid.Row="3" Text="Login SMTP : "  Name="label_Login_SMTP" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="1" Grid.Row="4" Text="Pass SMTP : "  Name="label_Pass_SMTP" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBox Grid.Column="2" Grid.Row="1" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="textBox_Adresse_Emission" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="35,0" />
                                <TextBox Grid.Column="2" Grid.Row="2" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="textBox_Serveur_SMTP" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="35,0" />
                                <TextBox Grid.Column="2" Grid.Row="3" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="textBox_Login_SMTP" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="35,0" />
                                <PasswordBox Grid.Column="2" Grid.Row="4" FontFamily="Tahoma"  Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11"  Name="textBox_Pass_SMTP" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="35,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
                                <my4:PDSAucButton  Text="Modifier" Name="button_Valider_Config_Mail" Effect="{StaticResource mainDropShadow}" Grid.Row="5" Grid.Column="1" Cursor="Hand" Click="button_Valider_Config_Mail_Click" IsEnabled="True" Margin="50,22,50,22" />
                                <my4:PDSAucButton  Text="Annuler" Name="button_Annuler_Config_Mail" Effect="{StaticResource mainDropShadow}" Grid.Row="5" Grid.Column="2" Cursor="Hand" Click="button_Annuler_Config_Mail_Click" IsEnabled="True" Margin="50,22,50,22" />

                            </Grid>
                        </TabItem>
                        <TabItem Header="Utilisateurs" Name="tabUsersConf" FontSize="11" FontWeight="Normal" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Style="{StaticResource tab2}" IsEnabled="True">
                            <Grid VerticalAlignment="Stretch" Name="camusersConf">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="2*" />
                                    <ColumnDefinition Width="2*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <TextBlock Grid.Column="1" Grid.ColumnSpan="2" Text="Gestion des utilisateurs" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD26282B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="Bold" FontSize="14" TextWrapping="Wrap" Focusable="False" />

                                <TextBlock Grid.Column="0" Grid.Row="1" Text="Nom : "  Name="lbl1"  FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="0" Grid.Row="2" Text="Prenom : "  Name="lbl2"  FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="0" Grid.Row="3" Text="Rôle : "  Name="lbl3" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="0" Grid.Row="4" Text="Niveau notif : "  Name="lbl4" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="0" Grid.Row="5" Text="Email : "  Name="lb52"  FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="0" Grid.Row="6" Text="Téléphone : "  Name="lbl6"  FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="0" Grid.Row="7" Text="Login : "  Name="lbl7" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="0" Grid.Row="8" Text="Password : "  Name="lbl8" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" />
                                <TextBlock Grid.Column="0" Grid.ColumnSpan="2" Name="label_Confirmation" Grid.Row="9" FontFamily="Tahoma" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="12" TextWrapping="Wrap" Focusable="False" Foreground="Red" OpacityMask="#B0000000"></TextBlock>
                                <my4:PDSAucButton  Text="Modifier" Name="button_Modifier" Effect="{StaticResource mainDropShadow}" Grid.Row="9" Grid.Column="3" Cursor="Hand" Click="button_Modifier_Click" IsEnabled="True" Margin="17,12,15,12" />
                                <my4:PDSAucButton  Text="Supprimer" Name="button_Supprimer_Config_Utilisateur" Effect="{StaticResource mainDropShadow}" Grid.Row="9" Grid.Column="4" Cursor="Hand" Click="button_Supprimer_Config_Utilisateur_Click" IsEnabled="True" Margin="14,12,14,12" />
                                <my4:PDSAucButton  Text="Ajouter" Name="button_Ajouter_Config_Utilisateur" Effect="{StaticResource mainDropShadow}" Grid.Row="9" Grid.Column="2" Cursor="Hand" Click="button_Ajouter_Config_Utilisateur_Click" IsEnabled="True" Margin="15,12,18,12" />
                                <TextBox Grid.Column="1" Grid.Row="1" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="textBox_Nom_Utilisateur" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="35,0" />
                                <TextBox Grid.Column="1" Grid.Row="2" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="textBox1_Prenom_Utilisateur" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="35,0" />
                                <TextBox Grid.Column="1" Grid.Row="5" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="textBoxe_mail" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="35,0" />
                                <TextBox Grid.Column="1" Grid.Row="6" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="textBox_Telephone" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="35,0" />
                                <TextBox Grid.Column="1" Grid.Row="7" FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" TextWrapping="Wrap" Name="textBox_Login" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="35,0" />
                                <PasswordBox  Grid.Column="1" Grid.Row="8" FontFamily="Tahoma" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontWeight="SemiBold" FontSize="11" Name="textBox_Pwd" IsEnabled="True" Cursor="IBeam" IsManipulationEnabled="True" Background="{x:Null}" Margin="35,0" PasswordChar="*" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />


                                <ComboBox Grid.Column="1" Grid.Row="3"  VerticalContentAlignment="Center" HorizontalContentAlignment="Center"  Name="comboBox_Role" Margin="35,18,35,19" FontSize="16">
                                    <ComboBoxItem Content="1" />
                                    <ComboBoxItem Content="2" />
                                </ComboBox>
                                <ComboBox Grid.Column="1" Grid.Row="4" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Name="comboBox_Lvl_Notif" Margin="35,18,35,19" FontSize="16">
                                    <ComboBoxItem Content="1" />
                                    <ComboBoxItem Content="2" />
                                </ComboBox>
                                <ListView Grid.Column="2" Margin="20,0" Grid.Row="1" Grid.ColumnSpan="3" Grid.RowSpan="8" Name="listView_User" SelectionChanged="listView_User_SelectionChanged" />





                            </Grid>
                        </TabItem>
                    </TabControl>
                </Grid>
            </TabItem>
            <TabItem Header="Alertes" Name="tabItemStats" FontSize="11" FontWeight="SemiBold" Style="{StaticResource tab}" IsEnabled="True" Loaded="tabItemStats_Loaded">
                <Grid VerticalAlignment="Stretch" Name="confStats">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <DataGrid AutoGenerateColumns="False" Grid.Row="0" Grid.Column="1" Name="gridStats" ItemsSource="{Binding lstStats}" CanUserResizeColumns="False" CanUserSortColumns="False" CanUserReorderColumns="False" FontFamily="Tahoma" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Top" VerticalContentAlignment="Top" CanUserResizeRows="False" SelectionMode="Single" Focusable="False" IsHitTestVisible="False">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Date" FontFamily="Tahoma" MinWidth="100" Width="100" Binding="{Binding DateAlert}" />
                            <DataGridTextColumn Header="Heure" FontFamily="Tahoma" MinWidth="100" Width="100" Binding="{Binding HeureAlert}"/>
                            <DataGridTextColumn Header="Durée" FontFamily="Tahoma" MinWidth="100" Width="100" Binding="{Binding TpsAlert}" />
                            <DataGridTextColumn Header="Niveau d'alerte" FontFamily="Tahoma" Binding="{Binding AlerLvl}" />
                            <DataGridTextColumn Header="Caméra" FontFamily="Tahoma" MinWidth="100" Width="100" Binding="{Binding CamName}"/>
                            <DataGridTextColumn Header="Localisation" FontFamily="Tahoma" MinWidth="120" Width="120" Binding="{Binding CameLoc}"/>
                            <DataGridTextColumn Header="Description" FontFamily="Tahoma" MinWidth="120" Width="120" Binding="{Binding CamDesc}"/>
                            <DataGridTextColumn Header="Objet détecté" FontFamily="Tahoma" MinWidth="110" Width="110" Binding="{Binding ObjDetect}"/>
                            <DataGridTextColumn Header="Envoyé à" FontFamily="Tahoma" MinWidth="120" Width="120" Binding="{Binding NameUser}"/>
                        </DataGrid.Columns>
                    </DataGrid>
                </Grid>
            </TabItem>
        </TabControl>
        <TextBlock Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="4" Name="txtSite"  FontFamily="Tahoma" TextAlignment="Center" Foreground="#DD33383B" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0">
            <Hyperlink NavigateUri="http://www.ovsproject.com" Foreground="#DD33383B"  FontFamily="Tahoma"  FontWeight="SemiBold" FontSize="11" RequestNavigate="Hyperlink_RequestNavigate">
                http://www.ovsproject.com
            </Hyperlink>
        </TextBlock>

    </Grid>
</Window>
